//
//  AuditRefuseController.m
//  WuJieLive
//
//  Created by iMac on 2017/11/17.
//  Copyright © 2017年 zhk. All rights reserved.
//

#import "AuditRefuseController.h"
#import "RealNameController.h"

@interface AuditRefuseController ()
@property (weak, nonatomic) IBOutlet UIButton *againBtn;
@property (weak, nonatomic) IBOutlet UILabel *resonLabel;

@end

@implementation AuditRefuseController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

-(void)setNavi
{
    self.title = @"实名认证";
}

-(void)setUI
{
    self.againBtn.layer.masksToBounds = YES;
    self.againBtn.layer.cornerRadius = 20;
    self.againBtn.layer.borderColor = TextLessImportColor.CGColor;
    self.againBtn.layer.borderWidth = 0.5;
}

-(void)setData
{
    [MBProgressHUD showHUDAddedTo:self.view animated:YES];
    NSDictionary * dict = @{@"token":self.userToken};
    [HTTPTool POSTForm:[NSString stringWithFormat:@"%@member/upload-id-card",BaseUrl] para:dict success:^(BOOL isSuccess, id responseObject) {
        [MBProgressHUD hideHUDForView:self.view animated:YES];
        if (isSuccess) {
            self.resonLabel.text = [[responseObject objectForKey:@"data"] objectForKey:@"verify_reject_reason"];
        }
    } failure:^(NSError *error) {
        [MBProgressHUD hideHUDForView:self.view animated:YES];
    }];
}

- (IBAction)againAction:(id)sender {
    RealNameController * vc = [[RealNameController alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
